home *** CD-ROM | disk | FTP | other *** search
- ;
- ; start.asm
- ; written by David A. Nye
- ; Released to the Public Domain.
- ;
- ; Assembler used: Borland's TASM.
- ;
- ; Assembly instructions:
- ; tasm start
- ; tlink start
- ; exe2bin start.exe
- ; ren start.bin start.com
- ;
-
- ideal
- model tiny
- codeseg
- org 100h
-
- start:
- mov ax,cs
- mov ds,ax
- mov ah,2
- int 16h
- and al,8
- jz exit
- mov dx, offset message
- mov ah,9
- int 21h
- mov ah,1
- int 21h
- sub al,'0'
- exit:
- mov ah,4ch
- int 21h
-
- message:
- db 'Enter digit for alternate AUTOEXEC.BAT functions: $'
-
- end start
-